package bb.lanxing.device.sgdevcie.xpair.viewmodel.repository.service

import bb.lanxing.model.routebook.RouteBookPreview
import bb.lanxing.net.retrofit.GenericResponse
import bb.lanxing.model.routebook.RouteBook
import okhttp3.MultipartBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface RouteBookService {
    @POST("/prod-api/bluerider/lushu/create_from_gpx/")
    suspend fun createFromGPX(
        @Body upload_file_name: MultipartBody
    ): GenericResponse<RouteBook>

    @GET("/api/v1/lushu/list_by_routes_id/")
    suspend fun fetchByIdsRouteBookList(@Query("route_id") list: List<Long>): GenericResponse<List<RouteBook>>

    @GET("/api/v3/route/route_mine/")
    suspend fun fetchByMeRouteBookList(
        @Query("limit") i: Int, @Query("offset") i2: Int
    ): GenericResponse<RouteBook>

    @POST(("/prod-api/bluerider/lushu/metrics_preview/"))
    suspend fun previewRouteBook(
        @Body upload_file_name: MultipartBody
    ): GenericResponse<RouteBookPreview>

}